package com.teradyne.merlin2.ui.client.places;


import com.google.gwt.place.shared.PlaceTokenizer;
import com.google.gwt.place.shared.Prefix;

public class WorkListApprovedPlace extends WorkPlace {

	private String placeName;

	public WorkListApprovedPlace() {
		this.placeName = "";
	}

	public WorkListApprovedPlace(String token) {
		this.placeName = token;
	}

	public String getPlaceName() {
		return placeName;
	}

	@Prefix("!" + PlacesPrefixesConstants.WORKLIST_APPROVED)
	public static class Tokenizer implements PlaceTokenizer<WorkListApprovedPlace> {

		@Override
		public String getToken(WorkListApprovedPlace place) {
			return place.getPlaceName();
		}

		@Override
		public WorkListApprovedPlace getPlace(String token) {
			return new WorkListApprovedPlace(token);
		}

	}

}
